package org.br.erp.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("materialmauf")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="material对象", description="产品表")
@Entity
public class Materialmauf implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @Column(precision = 28,scale = 8)
    private BigDecimal maufbatch;

    @Column(length = 32)
    private String parentid;

    @Column(precision = 28,scale = 8)
    @ColumnDefault("0")
    private BigDecimal maufdays;

    /**
     * 固定提前期
     */
    @Column(precision = 28,scale = 8)
    @ColumnDefault("0")
    private BigDecimal mauffixdays;


    @Column(precision = 28,scale = 8)
    @ColumnDefault("0")
    private BigDecimal maufbddays;

}
